package com.xbk.seckill.stock.config;

import com.xbk.seckill.common.config.RedisConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Spring事务编程配置类
 *
 * @author xiexu
 * @date 2025/3/8 21:08
 */
@Configuration
@MapperScan(value = {"com.xbk.seckill.stock.infrastructure.mapper"})
@ComponentScan(value = {"com.xbk.seckill", "com.alibaba.cola"})
@Import({RedisConfig.class})
@EnableTransactionManagement(proxyTargetClass = true)
@ServletComponentScan(basePackages = {"com.xbk.seckill"})
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class TransactionConfig {
}
